<?php

/**
 * User2lang form.
 *
 * @package    sf_sandbox
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfPropelFormTemplate.php 10377 2008-07-21 07:10:32Z dwhittle $
 */
class User2langForm extends BaseUser2langForm
{
  public function configure()
  {
  	
  	
  	 $this->setWidgets(array(
      'id'               => new sfWidgetFormInputHidden(array(),array('size'=>'60')),
      'user_id'           => new sfWidgetFormInputHidden(),
      'lang'               => new sfWidgetFormI18nSelectLanguage(array('culture' => sfContext::getInstance()->getUser()->getCulture())),
      'level' => new sfWidgetFormChoice(array('choices' => myTools::getLevelLang())),
  	 
  	 
    ));
  	
    
         $this->validatorSchema->setOption('allow_extra_fields', true);    
  		 
  		 $this->widgetSchema->setNameFormat('user2lang[%s]');	
  		 
  }
}
